<div class="row">
  <%= render 'menu' %>

  <div class="col-md-10">
    <div class="alert alert-warning">注意！更新密码以后需要重新登陆。</div>

    <div class="card">
      <div class="card-body">
        <%= form_for @user, url: setting_path, method: :put do |f| %>
          <%= render "shared/error_messages", target: @user %>
          <input type="hidden" name="by" value="password" />
          <div class="form-group">
            <%= f.label :current_password %>
            <%= f.text_field :current_password, class: "form-control" %>
          </div>
          <div class="form-group">
            <%= f.label :password %>
            <%= f.text_field :password, class: "form-control" %>
          </div>

          <div class="form-group">
            <%= f.label :password_confirmation %>
            <%= f.text_field :password_confirmation, class: "form-control" %>
          </div>

          <div class="form-actions hide-ios">
            <%= f.submit t("users.update_password"), class: "btn btn-primary", 'data-disable-with' => t("common.saving") %>
          </div>
        <% end %>
      </div>
    </div>
  </div>
</div>
